import request from '@/utils/request'

export const login = (data) => request.post('/sys/login', data)

export function getUserInfo(token) {
  return request.post('/sys/profile')
}

// 用户详细信息
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
export function logout() {

}
// 保存员工基本信息
export const saveUserDetail = data => request.put(`/sys/user/${data.id}`, data)
